//
//  ViewController.m
//  PageTool
//
//  Created by Burn on 2020/3/6.
//  Copyright © 2020 menksoft. All rights reserved.
//

#import "ViewController.h"
#import "PageView.h"
@interface ViewController ()<PageViewDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *ele = @[@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1",@"1"];
    PageView *pageView = [[PageView alloc]initWithFrame:CGRectMake(50, 300, self.view.frame.size.width - 100, 50) element:ele];
    pageView.page = 3;
    pageView.delegate = self;
    [self.view addSubview:pageView];
    
//    pageView.backgroundColor = [UIColor redColor];
}

- (void)currentIndex:(NSInteger)index{
        NSLog(@"---->%ld",index);
}
@end
